package com.offcn;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableDiscoveryClient
//熔断开启
@EnableCircuitBreaker
//开启Feign
@EnableFeignClients
public class ApiServiceStart {

    public static void main(String[] args) {
        SpringApplication.run(ApiServiceStart.class, args);
    }
}
